package com.jyt.peripheral.print

import com.jyt.peripheral.print.PrintManager.Companion.mGson

/**
 * @author 陈聪
 * date 2021/4/7:14:07
 * 打印的信息
 */
class PrintInfo(var printdata:Any?=null) {

    var printType = -1

    inline fun <reified T> getPrintInfo(): T? {
        return mGson?.fromJson(mGson?.toJson(printdata),T::class.java)
    }
}